menubutton: Don't hardcode label<->arrow spacing
authorAlexander Mikhaylenko <alexm@gnome.org>
Thu, 24 Jun 2021 18:12:31 +0000 (23:12 +0500)
committerAlexander Mikhaylenko <alexm@gnome.org>
Thu, 24 Jun 2021 18:13:01 +0000 (23:13 +0500)
This should come from the theme instead, as it does for icon<->arrow.

gtk/gtkmenubutton.c

index bce3e32eaf358fe6e3cba5d2f815a542b4f66ddf..5e5e70acaeb82ff24dc02c278880fc75e779b9e0 100644 (file)
@@ -1017,7 +1017,7 @@ gtk_menu_button_set_label (GtkMenuButton *menu_button,
   if (gtk_menu_button_get_icon_name (menu_button))
     g_object_notify_by_pspec (G_OBJECT (menu_button), menu_button_props[PROP_ICON_NAME]);
 
-  box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
+  box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
   label_widget = gtk_label_new (label);
   gtk_label_set_xalign (GTK_LABEL (label_widget), 0);
   gtk_label_set_use_underline (GTK_LABEL (label_widget),